import 'package:flutter/material.dart';
import 'package:percent_indicator/percent_indicator.dart';

class HeadProgress extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: new CircularPercentIndicator(
        radius: 130.0,
        animation: true,
        animationDuration: 1200,
        lineWidth: 15.0,
        percent: 0.4,
        center: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            new Text(
              "综合得分",
              style: new TextStyle(fontWeight: FontWeight.bold, fontSize: 20.0),
            ),
            new Text(
              "99.084%",
              style: new TextStyle(fontWeight: FontWeight.bold, fontSize: 16.0),
            )
          ],
        ),
        circularStrokeCap: CircularStrokeCap.butt,
        backgroundColor: Colors.yellow,
        progressColor: Colors.red,
      ),
    );
  }
}
